package ar.com.gtug.util;

import java.util.Calendar;
import java.util.Date;

public class SimpleDate extends Date{

	private Calendar calendar;
	
	public SimpleDate() {
		super();
		calendar = Calendar.getInstance();		
		calendar.setTime(new Date());
	}

	public int getDay(){
		return calendar.get(Calendar.DAY_OF_MONTH);		
	}
	public int getMonth(){
		return calendar.get(Calendar.MONTH)+1;		
	}
	public int getYear(){
		return calendar.get(Calendar.YEAR);		
	}

}
